Open positions window

Inner table presentation

Presents the table of orders.

The row of table are picked out by the color:

  1. White - odd row
  2. Light Gray - even row
  3. Rose - position account is under margin call
  1. Gray - position has not tradable currency
  2. Black - position has tradable currency
  3. The table has columns with titles:

  4. Ticket - order admitting ticket ID
  5. Account
  6. Currency - position's currency pair
  7. Amount (K) - amount of CCY1 has been bought or sold
  8. B/S - the side of operation (BUY or SELL)
  9. Open - price of currency, the position was opened with
  10. Close - current price of opposite operation
  11. Stop - the price, has been specified to stop possible lost
  12. Limit - the price, has been specified to limit possible profit
  13. Gross P/L - Current profit or lost including commission
  14. Comm - commission
  15. Roll - interest for roll over
  16. Net P/L - Current profit or lost without commission
  17. Time - Date and Time of position opening
  18. The mouse clicking reaction

    The Close column.

    The mouse click doesn't has reaction in next cases:

  19. In reconnection state.
  20. If account of position is under margin call
  21. If currency of position is not tradable
  22. In all other cases the Market Order dialog is shown for selected position.

    The Stop column.

    The mouse click doesn't has reaction in next cases:

  23. In reconnection state.
  24. If account of position is under margin call
  25. If currency of position is not tradable
  26. In all other cases the Market Order dialog is shown for selected position, and initiated by the Stop type.

    The Limit column.

    The mouse click doesn't has reaction in next cases:

  27. In reconnection state.
  28. If account of position is under margin call
  29. If currency of position is not tradable
  30. In all other cases the Set StopLimit dialog.htm is shown for selected position, and initiated by the Limit type.

    The mouse right button popup menu.

    Contains two item:

  31. Stop/Limit
  32. Close
  33. Stop/Limit item functionalities

    The item functionalities and conditions to be enabled are the same as in Stop/Limit item of application window menu.

    Close item functionalities

    The item functionalities and conditions to be enabled are the same as in Close item of application window menu.

    The calculating columns values

    Gross P/L column value

    Gross P/L column value is calculated by formulas:

  34. If CCY2 is USD
  35. If CCY1 is USD
  36. If there's no USD in both CCY1, CCY2 and CCY2 is from list: GBR, AUD, NZD
  37. , where

    is SELL price of CCY2/USD if >= 0, and

    it is BUY price of CCY2/USD if < 0

  38. If there's no USD in both CCY1, CCY2 and CCY2 is not from list: GBR, AUD, NZD

, where

is BUY price of USD/CCY2 if >= 0 and

it is SELL price of USD/CCY2 if < 0

Where:

- Value is being found

- Open position price

- Close position price

- Amount of Position

- Coefficient equals 1 for SELL position and -1 for BUY position

For example lets calculate third positions from:

There's no USD in both EUR, GBR and GBR is from list: GBR, AUD, NZD

The position is sell and < 0 so is BUY price of GBR/USD and equals 1.6649

So: = -166.49 (2 cents mismatch)

For next example lets calculate fourth position from:

There's no USD in both EUR, CHF and CHF is not from list: GBR, AUD, NZD

The position is sell and < 0 so is SELL price of USD/CHF and equals 1.3184

So: = --22.75485437

 

Net P/L column value:

NetPL = GrossPL - Comm + Inter

This is the subtraction of Gross P/L column value and Comm column value

 

NOTE for TESTING:

Shown above formulas were produced from algorithm, which one was used for writing program source code.

But there may be mismatches with server side calculation algorithm. That should be tested at the moment of closing position by comparing Profit/Lost calculated by client and change of account after closing.

The new balance of account of closed position should be the sum old balance and NetPL. If mismatch appear, that is a bug.